package com.lxmes.business.mapper;

import java.util.List;
import java.util.Map;

import com.lxmes.business.domain.CcCaigouDetail;
import com.lxmes.business.domain.CcChukuDetail;

/**
 * 采购详情Mapper接口
 * 
 * @author 张志煜
 * @date 2022-06-11
 */
public interface CcCaigouDetailMapper 
{
    /**
     * 查询采购详情
     * 
     * @param id 采购详情主键
     * @return 采购详情
     */
    public CcCaigouDetail selectCcCaigouDetailById(Long id);
    /**
     * 查询采购详情
     *
     * @param danhao 采购详情主键
     * @return 采购详情
     */
    public List<CcCaigouDetail> selectCcCaigouDetailByDanHao(String danhao);


    /**
     * 查询采购详情列表
     * 
     * @param ccCaigouDetail 采购详情
     * @return 采购详情集合
     */
    public List<CcCaigouDetail> selectCcCaigouDetailList(CcCaigouDetail ccCaigouDetail);

    /**
     * 新增采购详情
     * 
     * @param ccCaigouDetail 采购详情
     * @return 结果
     */
    public int insertCcCaigouDetail(CcCaigouDetail ccCaigouDetail);

    /**
     * 修改采购详情
     * 
     * @param ccCaigouDetail 采购详情
     * @return 结果
     */
    public int updateCcCaigouDetail(CcCaigouDetail ccCaigouDetail);

    /**
     * 删除采购详情
     * 
     * @param id 采购详情主键
     * @return 结果
     */
    public int deleteCcCaigouDetailById(Long id);
    public int deleteCcCaigouDetailByDanhao(String danhao);

    /**
     * 批量删除采购详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCcCaigouDetailByIds(Long[] ids);

    /*采购单统计总价格、总数量*/
    public Map<String,String> tJPartsPurchaseInfo(String danhao);

    public Map<String,String> getLastCaiGouItem(String itemCaode);
}
